using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using BO.Admin;

namespace Admin
{
    public partial class FileManager : System.Web.UI.Page
    {
        public RadToolBarButton rtbMultiUpload;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!User_Helper.IsLoggedIn()) Response.Redirect("/Login.aspx");
            if (!IsPostBack)
            {
                AddCustomButton();
            }
        }

        private void AddCustomButton()
        {
            rtbMultiUpload = new RadToolBarButton("Multi Upload");
            rtbMultiUpload.CssClass = "test_button";
            rtbMultiUpload.Value = "MultiUpload";
            rtbMultiUpload.CommandArgument = "testCommand";
            rtbMultiUpload.ImageUrl = "~/images/multiupload.png";
            rtbMultiUpload.CssClass = "nobg";
            RadFileExplorer1.ToolBar.Items.Add(rtbMultiUpload);
        }
    }
}
